#ifndef __FUNCTION_H
#define __FUNCTION_H

#include <stm32f10x.h>

#include "delay.h"

#define uint unsigned int
#define uchar unsigned char

struct HouseholdCar{
    u8 car_num[7];
    u8 area;
    u8 position[3];
	u8 state;
    u8 permissions;
	u8 money[5];
};

struct UserCar{
    u8 car_num[7];
    u8 area;
    u8 position[3];
    u8 storageTime[7];
	u8 permissions;
    u8 category;
};


void KeyFuncing(char key);
void input(void);
void set(void);
void dataInit(void);
u8 licencePlate(struct HouseholdCar *datatemp);
void enter(unsigned int *temp,u8 key,struct HouseholdCar *datatemp);
u8 area(struct HouseholdCar *datatemp, u8 b);
u8 dock(struct HouseholdCar *datatemp);
u8 authority(struct HouseholdCar *datatemp);
void inquire(void);
void display(int num);
void display3(int num);
void sDisplay(void);
void change(u8 choees, u8 wei, int num);
void rates(void);
void display4(u8 num);
void display5(int num);
void xiugai(u8 num);

void precontract(void);
u8 classes(u8 *datatemp);
void changePassword(void);
u8 coded(void);
int mystrcmp(const  u8* src, const u8* dst, const u8 size);
void gongneng(u8 *data);
void nowStop(u8 *data);
u8 pduan(void);
int getbbb(void);
void led(u8 ddd);
void led_off(void);
void bofang(u8 *dep);


#endif


